package com.ruoyi.business.domain;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;
import lombok.Data;

import java.util.Date;

/**
 * 购物列表对象 user_product
 *
 * @author 吴倩芸
 * @date 2023-03-07
 */
@Data
@TableName("userProduct")
public class UserProduct extends BaseEntity {
    private static final long serialVersionUID = 1L;

    /**
     * $column.columnComment
     */
    @TableId
    private Long id;

    /**
     * 用户的id
     */
    @Excel(name = "用户的id")
    @TableField(value = "user_id")
    private Long userId;

    /**
     * 物品的id
     */
    @Excel(name = "物品的id")
    @TableField(value = "product_id")
    private Long productId;

    /**
     * 购买的物品数量
     */
    @Excel(name = "购买的物品数量")
    @TableField(value = "buy_num")
    private Long buyNum;

    /**
     * 消费的金额
     */
    @Excel(name = "消费的金额")
    @TableField(value = "amount")
    private Double amount;

    /**
     * 购买日期
     */
    @Excel(name = "购买日期")
    @TableField(value = "buy_time")
    private Date buyTime;

}
